package com.github.cyf.entity;

import com.github.cyf.entity.group.CrudGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * @author chenyifan
 * @create 2024-05-07 21:38
 */
@Data
public class UserVo {

    @Null(groups = CrudGroup.Create.class, message = "新增时id必须为空")
    @NotNull(groups = CrudGroup.Update.class, message = "编辑时id不能为空")
    private String id;

    @NotBlank(groups = CrudGroup.Create.class, message = "添加时间不能为空")
    private String addTime;

    @NotBlank(groups = CrudGroup.Update.class, message = "修改时间不能为空")
    private String updateTime;
}
